<?php defined('BASEPATH') OR exit('No direct script access allowed');

/**
 * Usuarios_model
 * @author Thiago Braga <thiago@sitesg.com.br>
 * @access protected
 */
class Links_model extends CI_Model {

  /**
   * Seleciona todos os links
   * @return object
   */
  public function select_links() {
    return $this->db->query("
      SELECT
        id,
        titulo,
        descricao,
        url,
        imagem
      FROM
        links
      WHERE
        situacao = 'A';")->result();
  }

}

/* End of file links_model.php */
/* Location: ./application/models/links_model.php */